<!--<?php
print <<<EOT
-->
<div class="m"></div>
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="tr4"><td colspan="6">
  <input type="button" name="Submit5" value="查看用户组" class="btn" onclick="window.location='$basename';"/>
  <input type="button" name="Submit5" value="创建新组" class="btn" onclick="window.location='$basename&action=add';"/></td>
</tr>
</table>
</div>
<!--
EOT;
if(!$action){
print <<<EOT
-->
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="head"><td colspan="4">用户组管理</td></tr>
<tr class="tr2">
  <td width="5%">&nbsp;</td>
  <td>GroupID</td>
  <td>组名</td>
  <td>管理操作</td>
</tr>
<!--
EOT;
foreach($admindb as $admin){
$delurl = EncodeUrl("$basename&action=del&uid=$admin[uid]");
print <<<EOT
-->
<tr class="tr3">
  <td><img src="images/icon/group.png" align="absmiddle" /></td>
  <td>$admin[groupid]</td>
  <td><a href="$admin_file?adminjob=user&groupid=$admin[groupid]">$admin[groupname]</a></td>
  <td><a href="$basename&action=edit&groupid=$admin[groupid]"><img src="images/admin/edit.png" align="absmiddle" alt="编辑" /></a> <a href="$basename&action=del&groupid=$admin[groupid]" onclick="return confirm('您确认删除该用户组？');"><img src="images/admin/delete.png" align="absmiddle" alt="删除" /></a>  </td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
</div>
<!--
EOT;
}elseif($action=='edit'){
print <<<EOT
-->
<form action="$basename" method="post">
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="head">
  <td colspan="2">编辑用户组</td>
</tr>
<tr class="line">
  <td width="25%">用户组名称</td>
  <td width="75%"><input name="groupname" type="text" class="input" id="groupname" value="$edit[groupname]" /></td>
</tr>
<tr class="line">
  <td>上传权限</td>
  <td><input name="ifupload" type="radio" value="1" $ifupload_Y />
    允许上传 
      <input type="radio" name="ifupload" value="0" $ifupload_N />
      不允许上传</td>
</tr>
<tr class="line">
  <td>默认审核</td>
  <td><input name="ifcheck" type="radio" value="1" $ifcheck_Y />
    默认即审核 
      <input type="radio" name="ifcheck" value="0" $ifcheck_N />
    默认未审核</td>
</tr>
</table>
</div>
<center>
  <input name="groupid" type="hidden" id="groupid" value="$edit[groupid]" />
  <input name="action" type="hidden" id="action" value="edit" />
  <input name="step" type="hidden" id="step" value="2">
  <input type="submit" name="Submit" value=" 提 交 " class="btn"> 
  <input type="reset" name="Submit2" value=" 重 置 " class="btn">
</center>
</form>
<!--
EOT;
}elseif($action=='add'){
print <<<EOT
-->
<form action="$basename" method="post">
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="head"><td colspan="2">添加用户组</td></tr>
<tr class="line">
  <td width="25%">用户组名称</td>
  <td width="75%"><input name="groupname" type="text" id="groupname" class="input" /></td>
</tr>
<tr class="line">
  <td>上传权限</td>
  <td><input name="ifupload" type="radio" value="1" checked="checked" />
    允许上传 
      <input type="radio" name="ifupload" value="0" />
      不允许上传</td>
</tr>
<tr class="line">
  <td>默认审核</td>
  <td><input name="ifcheck" type="radio" value="1" checked="checked" />
  默认即审核
    <input type="radio" name="ifcheck" value="0" />
    默认未审核</td>
</tr>

</table>
</div>
<center>
  <input name="action" type="hidden" id="action" value="add" />
  <input name="step" type="hidden" id="step" value="2">
  <input type="submit" name="Submit" value=" 提 交 " class="btn"> 
  <input type="reset" name="Submit2" value=" 重 置 " class="btn">
</center>
</form>
<!--
EOT;
}
?>-->